package com.itmk.business.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itmk.business.article.entity.Article;
import com.itmk.business.article.entity.Comment;
import com.itmk.business.article.entity.CommentManager;
import com.itmk.vo.req.ArticleReqVO;
import com.itmk.vo.req.CommentManagerReqVO;
import com.itmk.vo.req.CommentReqVO;
import com.itmk.vo.resp.CommentManagerRespVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface CommentManagerMapper extends BaseMapper<CommentManager> {
    IPage<CommentManagerRespVO> getCommentManagerList(IPage<CommentManagerRespVO> iPage, @Param("commentManagerReqVO") CommentManagerReqVO commentManagerReqVO);
    //    清除临时表信息
    void truncateTable();

    List<HashMap<String,Object>> getCommentDetail(@Param("comment") Comment comment);
}
